<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 使用绝对路径,打开网站时显示的主页就是/ -->
    <link rel="stylesheet" href="/css/index.css">
    <link rel="stylesheet" href="/libs/swiper-5.0.3/css/swiper.min.css">
    <title>首页-英雄联盟周边商城</title>
</head>
<header></header>

<body>
    <!-- 轮播图 -->
    <div class="swiper-container">
        <div class="swiper-wrapper" id="my_swiper_template_title">
        </div>
        <script type="text/html" id="my_swiper_template">
            {{each list item}}
            <div class="swiper-slide"><img class="my_swiper_img" src="{{item.img}}" alt=""></div>
            {{/each}}
        </script>

        <!-- 如果需要分页器 -->
        <div class="swiper-pagination"></div>

        <!-- 如果需要导航按钮 -->
        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>
    </div>



    <!-- 内容，商品简要展示 -->
    <section>
        <ul id="shop_show_ul"></ul>
        <script type="text/html" id="shop_show_li">
            {{each list item}}
            <li>
                <a href="javascript:;"><img src="{{item.img}}" alt=""></a>
                <p>{{item.ctitle}}</p>
            </li>
            {{/each}}
        </script>
    </section>
    <footer></footer>
</body>

<script src="/libs/require/require.min.js" data-main="/js/index"></script>

</html>